import request from '@/utils/request'
export default{
        //根据视频id删除阿里云的视频
        deleteVideoById(videoId) {
          return request({
            url: `/eduvod/${videoId}`,
            method: 'delete'
          })
       },
      //根据章节id查询章节
      getVideo(videoId) {
        return request({
          url: `/eduservice/edu-video/${videoId}`,
          method: 'get'
        })
     },
    //添加或者修改章节
    saveOrUpdate(eduVideo) {
      return request({
        url: `/eduservice/edu-video/save`,
        method: 'post',
        data: eduVideo
      })
   },
   //删除章节-判断有小结就不删除
   deleteById(videoId) {
    return request({
      url: `/eduservice/edu-video/${videoId}`,
      method: 'delete'
    })
 }

}
